package com.ld.wms.business.material.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ld.wms.business.material.model.MaterialExampleModel;
import com.ld.wms.business.material.vo.resp.MaterialExampleLikeSearchRespVo;
import com.ld.wms.business.material.vo.resp.MaterialExampleRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 物料实例表，具体的物料想信息 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-24
 */
public interface MaterialExampleMapper extends BaseMapper<MaterialExampleModel> {

    IPage<MaterialExampleRespVo> selectPageByCondition(IPage<MaterialExampleRespVo> page, @Param("materialTypeId") Long materialTypeId,
                                                       @Param("casCode") String casCode, @Param("name") String name, @Param("inventory") Integer inventory);

    List<MaterialExampleLikeSearchRespVo> selectByName(@Param("name")String name);

}
